﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Vehicle_List.aspx.cs" Inherits="WebUI.Vehicle.Vehicle_List" %>

<asp:Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
  
    车辆编号：<asp:TextBox ID="txtVehicleSn" runat="server" Width="50px" ForeColor="#404040"></asp:TextBox>车牌号码：<asp:TextBox
        ID="txtVehicleNumber" runat="server" Width="58px" ForeColor="#404040"></asp:TextBox>最大容量：<asp:TextBox ID="txtMaxSize"
            runat="server" Width="22px" ForeColor="#404040"></asp:TextBox>最大载重：<asp:TextBox ID="txtMaxWeight" runat="server"
                Width="20px" ForeColor="#404040"></asp:TextBox>所在车队：
    <asp:DropDownList ID="ddrCargoCars" runat="server" ForeColor="#404040">
    </asp:DropDownList>车辆状态：
    <asp:DropDownList ID="drlStateType" runat="server" ForeColor="#404040">
        <asp:ListItem>所有</asp:ListItem>
        <asp:ListItem>正常</asp:ListItem>
        <asp:ListItem>预备</asp:ListItem>
        <asp:ListItem>运行</asp:ListItem>
        <asp:ListItem>报修</asp:ListItem>
    </asp:DropDownList>
    <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查找" ForeColor="#404040" /><br />
        <div style="width:750px;margin-top:15px;">
    <asp:GridView ID="grvVehicleList" runat="server" AutoGenerateColumns="False" OnRowDeleting="grvVehicleList_RowDeleting" AllowPaging="True" OnPageIndexChanging="grvVehicleList_PageIndexChanging" PageSize="8" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal" Width="750px">
        <Columns>
            <asp:BoundField DataField="VehicleSN" HeaderText="编号" />
            <asp:HyperLinkField DataNavigateUrlFields="VehicleSN" DataTextField="VehicleNumber" HeaderText="车牌号码"
                NavigateUrl="~/Vehicle/Vehicle_Modify.aspx" DataNavigateUrlFormatString="Vehicle_Modify.aspx?VehicleSN={0}" />
            <asp:BoundField DataField="VehicleType" HeaderText="车辆类型" />
            <asp:BoundField DataField="MaximumSize" HeaderText="最大容量" />
            <asp:BoundField DataField="MaximumWeight" HeaderText="最大载重" />
            <asp:BoundField DataField="VehicleState" HeaderText="车辆状态" />
            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#333333" />
        <RowStyle BackColor="White" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
     <div style="text-align:right; margin-top:10px;">  <asp:HyperLink ID="hylAddVehicle" runat="server" NavigateUrl="~/Vehicle/Vehicle_Modify.aspx">增加车辆</asp:HyperLink>
     </div></div>
</asp:Content>
